﻿//IE6 layout hack
Jx.ready(function () {
    var fire = false;
    var time = 0;
    function autoResize() {
        if (!fire) {
            var page = Jx.page(); fire = true;

            Jx(".lefter").get(0).style.height = page.windowHeight - Jx(".header").height() - 2 + "px";
            Jx(".mainer").get(0).style.height = page.windowHeight - Jx(".header").height() - 2 + "px";
            Jx(".mainer").get(0).style.width = page.windowWidth - Jx(".lefter").width() - 2 + "px";

        } else {
            if (time++ > 3) {
                time = 0;
                fire = false;
                autoResize();
            }
        }
    };
    autoResize();
    window.onresize = autoResize;
});